package com.heibas.config.vo;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.io.Serializable;

/**
 * 结果集返回
 */
public class ResultInfo implements Serializable {
    protected Boolean result;
    protected Integer code;
    /**
     * 如果是空值就不序列化出去
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    protected String message;

    protected ResultInfo(Boolean result, Integer code, String message) {
        this.result = result;
        this.code = code;
        this.message = message;
    }
}
